<?php

class Session {

    public static function init() {
        @session_start();
    }

    public static function set($name, $value) {
        $_SESSION[$name] = $value;
    }

    public static function get($name) {
        if (isset($_SESSION[$name]))
            return $_SESSION[$name];
        return null;
    }

    public static function destroy() {
        session_destroy();
    }
    public static function unSession($name){
        session_unset($name);
    }

    public static function commit() {
        session_commit();
    }

}

?>